import request from '@/utils/request'

// 查询采购订单商品列表
export function listBuyOrderGoods(query) {
  return request({
    url: '/caigou/buyOrderGoods/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单商品详细
export function getBuyOrderGoods(id) {
  return request({
    url: '/caigou/buyOrderGoods/' + id,
    method: 'get'
  })
}

// 新增采购订单商品
export function addBuyOrderGoods(data) {
  return request({
    url: '/caigou/buyOrderGoods',
    method: 'post',
    data: data
  })
}

// 修改采购订单商品
export function updateBuyOrderGoods(data) {
  return request({
    url: '/caigou/buyOrderGoods',
    method: 'put',
    data: data
  })
}

// 删除采购订单商品
export function delBuyOrderGoods(id) {
  return request({
    url: '/caigou/buyOrderGoods/' + id,
    method: 'delete'
  })
}
